import {createApp} from 'vue'
import '@/assets/reset.css'
import '@/assets/global.css'
import '@/components/style.css'
import App from './App.vue'
import router from './router'
import {createPinia} from 'pinia'
import {registerSvgIcons} from './plugins/registerSvgIcons'
import registerComponents from '@/components/register'
import createMonacoLocalPlugin from './plugins/monaco-local'
import VChart from 'vue-echarts'

//创建App
const app = createApp(App)
//注册路由
app.use(router)
//注册pinia
app.use(createPinia())
//注册svg组件
registerSvgIcons(app)
//注册自定义组件
// registerCustomComponents(app)
app.use(registerComponents)
//使用编辑器插件
app.use(createMonacoLocalPlugin())
app.component('VChart', VChart)
//挂载到index.html入口文件中id为app的div上
app.mount('#app')
console.log("正在使用vue版本:", app.version)
console.log('构建时间：', __BUILD_TIME__)
console.log('当前环境：', __APP_ENV__)